package com.example.cet4try.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.content.SharedPreferences;
import android.os.Bundle;
import android.widget.TextView;

import com.example.cet4try.R;
import com.example.cet4try.Utils.Tools;

public class ActivityVocabulary extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_vocabulary);

        SharedPreferences preferences = getSharedPreferences("App_Shared_Data", 0);
        String username = preferences.getString("username","");

        int count_learned = Tools.CountUserData(username,"learned");
        TextView t_chl,c_cet4;
        t_chl = findViewById(R.id.t_chl);
        t_chl.setText(String.valueOf(count_learned));

        c_cet4 = findViewById(R.id.c_cet4);
        c_cet4.setText(String.valueOf(count_learned));

    }
}
